﻿using System;

namespace Repetition.Persistence
{
    public interface IPersistentContext : IDisposable
    {
        System.Collections.Generic.ICollection<T> GetAll<T>() where T : IPersistable;
        bool IsPersisted(IPersistable obj);
        void Remove<T>(T obj) where T : IPersistable;
        void Save<T>(T obj) where T : IPersistable;
    }
}
